package model.requirement4;

// 蘑菇装饰器
public class MushroomDecorator extends PizzaDecorator {
    public MushroomDecorator(CustomPizza pizza) {
        super(pizza);
    }

    @Override
    public String getDescription() {
        return pizza.getDescription() + ", 蘑菇";
    }

    @Override
    public double getCost() {
        return pizza.getCost() + 1.00; // 蘑菇的额外价格
    }
}
